package com.hxzy.research.mapper;

import com.hxzy.research.pojo.TblItem;

import java.util.List;

public interface TblItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TblItem record);

    int insertSelective(TblItem record);

    TblItem selectByPrimaryKey(Integer id);
    //通过大项id查询小项
    public List<TblItem> selectItemByBigId(Integer bigId);

    int updateByPrimaryKeySelective(TblItem record);

    int updateByPrimaryKey(TblItem record);
    //添加小项
    public void addItem(TblItem tblItem)throws Exception;
    //查询小项id
    public TblItem findItemIdByName(TblItem tblItem)throws Exception;
    //通过id查询小项的item_name
    public TblItem findItemNameById(Integer id)throws Exception;


    //修改-先修改小项
    public void updateItem(TblItem tblItem)throws Exception;

    //执行删除操作
    public void deleteItemById(Integer id)throws Exception;
}